package com.fbt.andon.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 人员表
 * </p>
 *
 * @author 冯涛
 * @since 2021-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Worker对象", description="人员表")
public class Worker implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "工人号")
    private Integer workerNumber;

    @ApiModelProperty(value = "所属工厂号(外键)")
    private Integer plantId;

    @ApiModelProperty(value = "所属产线号(外键）")
    private Integer lineId;

    @ApiModelProperty(value = "所属小组号(外键)")
    private Integer groupId;

    @ApiModelProperty(value = "工人名")
    @Excel(name = "工人名", cellType = Excel.ColumnType.NUMERIC)
    private String workName;

    @ApiModelProperty(value = "年龄")
    @Excel(name = "年龄", cellType = Excel.ColumnType.NUMERIC)
    private Integer age;

    @ApiModelProperty(value = "性别")
    @Excel(name = "性别", cellType = Excel.ColumnType.NUMERIC)
    private String sex;

    @ApiModelProperty(value = "电话号码")
    @Excel(name = "电话号码", cellType = Excel.ColumnType.NUMERIC)
    private String phoneNumber;

    @ApiModelProperty(value = "地址")
    @Excel(name = "地址", cellType = Excel.ColumnType.NUMERIC)
    private String sitre;

    @ApiModelProperty(value = "ng总数")
    @Excel(name = "ng总数", cellType = Excel.ColumnType.NUMERIC)
    private Integer ng;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @Excel(name = "创建时间", cellType = Excel.ColumnType.NUMERIC)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建者")
    private String createUser;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改者")
    private String updateUser;



}
